import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * Created by 510 on 2018/4/8.
 */
public class PC {
    CPU cpu;
    HardDisk HD;
    PC(CPU cpu) {
        this.cpu = cpu;
    }
    PC(HardDisk HD) {
        this.HD = HD;
    }
    PC(CPU cpu,HardDisk HD) {
        System.out.println("CPU速度:"+cpu.getSpeed());
        System.out.println("硬盘容量:"+HD.getAmount());
    }
    public String toString() {
        String str = super.toString();
        return str;
    }
    void equals(){}
}
